#include <stdio.h>
#include <stdlib.h>

int cmp(const void *a,const void *b){
	return (int*)a<(int*)(b);
}
int main(){
	FILE *fp = fopen("in1.txt","a");
	FILE *fp1 = fopen("in1.txt","a");
	int a[10];
	for(int i =0; i<sizeof(a)/sizeof(a[0]); i++ ){
		fscanf(fp,"%i",&a[i]);
	}
	qsort(a,0,10,cmp);a[0]=-477000;
	
	fprintf(fp,"\n");
	//FILE *fpo = fopen("out1.txt","a");
	for(int i=0; i<sizeof(a)/sizeof(a[0]); i++ ){
		fprintf(fp,"%i ",a[i]);
	}
	fprintf(fp,"\n");
	fclose(fp);
	return 0;
} 
